<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Goods')}:</label>
    </div>
    <div class="form-group">
        <div class="col-xs-12 col-sm-12">
            <table id="table-product" class="table table-striped table-bordered table-hover table-nowrap" width="100%">
            </table>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Roomid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-roomid" data-rule="required" class="form-control" name="row[roomid]" type="text" value="{$row.roomid|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cover_img')}:</label>
        <div class="col-xs-12 col-sm-8">
            <img width="192" height="108" style="object-fit: cover" src="{:cdnurl($row['cover_img'])}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cover_img_media_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cover_img_media_id" data-rule="required" class="form-control" name="row[cover_img_media_id]" type="text" value="{$row.cover_img_media_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Share_img')}:</label>
        <div class="col-xs-12 col-sm-8">
            <img width="80" height="64" style="object-fit: cover" src="{:cdnurl($row.share_img)}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Share_img_media_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-share_img_media_id" data-rule="required" class="form-control" name="row[share_img_media_id]" type="text" value="{$row.share_img_media_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Start_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[start_time]" type="text" value="{:$row.start_time?datetime($row.start_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('End_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-end_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[end_time]" type="text" value="{:$row.end_time?datetime($row.end_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Anchor_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-anchor_name" data-rule="required" class="form-control" name="row[anchor_name]" type="text" value="{$row.anchor_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Anchor_wechat')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-anchor_wechat" data-rule="required" class="form-control" name="row[anchor_wechat]" type="text" value="{$row.anchor_wechat|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Live_status')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
            {foreach name="liveStatusList" item="vo"}
            <label for="row[live_status]-{$key}"><input id="row[live_status]-{$key}" name="row[live_status]" type="radio" value="{$key}" {in name="key" value="$row.live_status"}checked{/in} /> {$vo}</label>
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">
                {foreach name="typeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Screen_type')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-screen_type" data-rule="required" class="form-control selectpicker" name="row[screen_type]">
                {foreach name="screenTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.screen_type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Close_like')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-close_like" data-rule="required" class="form-control selectpicker" name="row[close_like]">
                {foreach name="closeLikeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.close_like"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Close_goods')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-close_goods" data-rule="required" class="form-control selectpicker" name="row[close_goods]">
                {foreach name="closeGoodsList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.close_goods"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Close_comment')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-close_comment" data-rule="required" class="form-control selectpicker" name="row[close_comment]">
                {foreach name="closeCommentList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.close_comment"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
</form>
<script>
    tableProduct = {$row.goods ? $row.goods : '[]'};
</script>
